package com.gibs.peixunapi.service;

import com.gibs.peixunapi.model.ExamClassInfo;
import com.gibs.peixunapi.model.TestPaper;
import com.gibs.peixunapi.result.Result;

import javax.validation.Valid;

public interface ExamClassInfoService {

    Result create(@Valid ExamClassInfo object);

    Result save(@Valid ExamClassInfo object);

    Result delete(Integer id);

    Result get(Integer id);

    Result getList(String key);

    Result getListPage(String key, Integer current, Integer limit);

    Result getOptions(String key);

    /**
     * 检查试卷是否已经被使用过
     * @param testPaperId 试卷实体类Id
     * @return 考试以开始就为true,只有等待开始为false
     */
    Boolean isTestPaperUsed(Integer testPaperId);

}

